home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / Mingw32.bat < prev    next >
Encoding:
DOS Batch File  |  1998-08-28  |  1.8 KB  |  67 lines

  1. echo off
  2. rem EGCS-Mingw32 build of Mesa 3-D Graphics Library
  3. rem Paul Garceau, August 26, 1998
  4. rem
  5. rem bat file uses Make 3.76.1
  6. rem touch command requires "touch" to be somewhere on your system path
  7. rem
  8. touch src/depend
  9. touch src-glu/depend
  10. rem touch src-glut/depend
  11.  
  12. rem Create a lib directory/folder
  13. rem
  14. md lib
  15.  
  16. rem Generate wing32.dll for the sake of Mesa build
  17. cd src\windows
  18. rem
  19. rem Create a .a lib file
  20. rem
  21. dlltool --def wing32.def --output-lib wing32.a
  22. rem
  23. rem Create a .dll file (wing32.dll); EGCS-Mingw32 compiler used
  24. rem
  25. gcc -mdll -o wing32.dll wing32.a -WI,temp.exp
  26. rem
  27. rem wing32.dll is now created -- move .a and .dll to
  28. rem lib dir
  29. mv wing32.dll wing32.a c:\mesa-3.0\lib
  30. rem files moved
  31.  
  32. rem Return to mesa-3.0 'root' directory
  33. cd c:\mesa-3.0
  34.  
  35. rem Now begins the build of mesa-2.6 libs for EGCS/Mingw32
  36.  
  37. rem  Build libMesaGL.a
  38. rem
  39. make -w --directory=c:\mesa-3.0\src -f makefile.nt4
  40.  
  41. rem  Build libMesaGLU.a
  42. rem
  43. make -w --directory=c:\mesa-3.0\src-glu -f makefile.nt4
  44.  
  45. rem  Optional libraries:
  46. rem The following libraries, apparently, are optional
  47. rem for Mesa and should only be uncommented if you have the
  48. rem necessary support already available on your machine
  49. rem
  50. rem         Mesaaux.a lib for aux extension
  51. rem make -w --directory=c:\mesa-3.0\src-aux -f makefile.nt4
  52.  
  53. rem         libglut.a for glut extension of Mesa:
  54. rem make -w --directory=c:\mesa-3.0\src-glut -f makefile.nt4
  55. rem
  56. rem         libMesatk.a for tk extensions of Mesa
  57. rem make -w --directory=c:\mesa-3.0\src-tk -f makefile.nt4
  58. rem
  59. rem Clean up the object files floating around out there...
  60. rem comment the next lines depending on which collection of
  61. rem Mesa libs you built
  62. rem
  63. del src\*.o
  64. del src-glu\*.o
  65. rem del src-aux\*.o
  66. rem del src-glut\*.o
  67.